<div  ng-include="'partials/common/crumb/crumb.html'"></div>
<div id="blockforging" ng-controller="blockforgingCtrl" ng-init="init()">

		<div class="accountInfo_cont">
			<div class="_title">
				{{'DELEGATE_INFO' | translate}}
				<div class="nav_register" ng-click="assigneeShowInfo()" ng-show="!delegate.username">
					{{'DELEGATE_REGISTER' | translate}}
				</div>
				<div class="nav_register"  ng-show="delegate.username">
					{{delegate.username}}
				</div>
				<div class="nav_register">{{forgingStatus()}}</div>
			</div>
			<div class="circlePicInfo">
				<div class="circle allMoney">
					<div class="pagea circle"></div>
					<div class="text1">{{'TOTAL_EARNINGS' | translate}}</div>
					<div class="text2"  ng-show="delegate.forged || delegate.forged == 0">{{delegate.forged | xasFilter }}</div>
					<div class="text2"  ng-show="!delegate.forged && delegate.forged != 0">--</div>
					<div class="text3">XAS</div>
				</div>
				<div class="circle rank">
					<div class="pagea circle">
						<div class="title">{{'RANKING' | translate}}</div>
						<div class="num"  ng-show="delegate.rate  || delegate.rate == 0">{{delegate.rate}}</div>
						<div class="num" ng-show="!delegate.rate && delegate.rate != 0">--</div>
					</div>
				</div>
				<div class="circle output">
					<div class="pagea circle">
						<div class="title">{{'PRODUCTIVITY' | translate}}</div>
						<div class="num" ng-show="delegate.productivity  || delegate.productivity == 0">{{delegate.productivity}}%</div>
						<div class="num" ng-show="!delegate.productivity  && delegate.productivity != 0">--</div>
					</div>
				</div>
				<div class="circle depiao">
					<div class="pagea circle">
						<div class="title">{{'APPROVAL' | translate}}</div>
						<div class="num" ng-show="delegate.approval   || delegate.approval == 0">{{delegate.approval}}%</div>
						<div class="num" ng-show="!delegate.approval  && delegate.approval != 0">--</div>
					</div>
				</div>

			</div>
		</div>
		<div class="baseInfo">
			<div class="_title">
				{{'PRODUCED_BLOCKS' | translate}}
			</div>
			<div class="baseInfo_content">
				<table class="table"ng-table="blockforgingtableparams" border="0" width="100%" cellpadding="0" cellspacing="0"
					   template-pagination="custom/pager" >
				<thread>
					<tr>
						<td>{{'HEIGHT' | translate}}</td>
						<td>{{'DATE' | translate}}</td>
						<td>ID</td>
						<td>{{'TRANSACTIONS' | translate}}</td>
						<td>{{'AMOUNTS' | translate}}</td>
						<td>{{'FEES' | translate}}</td>
						<td>{{'REWARDS' | translate}}</td>
					</tr>
				</thread>
					<tr ng-repeat="i in $data"  >
						<td> <i class="level" ng-click="showdetailInfo(i)">{{i.height}}</i></td>
						<td><span ng-show="i.timestamp > 0">{{i.timestamp | timestampFilter}}</span></td>
						<td><i class="level" ng-click="showdetailInfo(i)">{{i.id}}</i></td>
						<td><i class="level" ng-click="showdealInfo(i)">{{i.numberOfTransactions}}</i></td>
						<td>{{i.totalAmount | xasFilter}}</td>
						<td>{{i.totalFee | xasFilter}}</td>
						<td>{{i.reward | xasFilter}}</td>
					</tr>
				</table>
			</div>

			<!--<div class="more">-->
				<!--加载更多...-->
			<!--</div>-->
			<script type="text/ng-template" id="custom/pager">
				<ul class="pagination ng-table-pagination">
					<li ng-class="{'disabled': !page.active && !page.current, 'active': page.current}" ng-repeat="page in pages" ng-switch="page.type">
						<a ng-switch-when="prev" ng-click="params.page(page.number)" href="">
							<i class="mdi-hardware-keyboard-arrow-left">{{'PREV_PAGE' | translate}}</i>
						</a>
						<a ng-switch-when="first" ng-click="params.page(page.number)" href="">
							<span ng-bind="page.number"></span>
						</a>
						<a ng-switch-when="page" ng-click="params.page(page.number)" href="">
							<span ng-bind="page.number"></span>
						</a>
						<a ng-switch-when="more" ng-click="params.page(page.number)" href="">&#8230;</a>
						<a ng-switch-when="last" ng-click="params.page(page.number)" href="">
							<span ng-bind="page.number"></span>
						</a>
						<a ng-switch-when="next" ng-click="params.page(page.number)" href="">
							<i class="mdi-hardware-keyboard-arrow-right">{{'NEXT_PAGE' | translate}}</i>
						</a>
					</li>
				</ul>
			</script>
		</div>
</div>